Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## rdlc.commands
Class Check

    java.lang.Object
      java.lang.Thread
          rdlc.commands.Command
              rdlc.commands.Check

All Implemented Interfaces:
  java.lang.Runnable

    public class Check

extends Command

This class represents a check command which has been constructed either from the command line arguments or through the GUI. It can be directly invoked or started as a separate thread.

Version:
  $Revision: 1.4 $
Author:
  Greg Gibeling

Nested Class Summary

Nested classes/interfaces inherited from class java.lang.Thread
`java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler`

Field Summary

Fields inherited from class rdlc.commands.Command
`commandOptions, errorLog, inputClass, inputFileName, inputPath, manifest, oldErr, options, outputPath, pluginConfigTable, plugins, pluginTable, root`

Fields inherited from class java.lang.Thread
`MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY`

Constructor Summary
`Check(Main main, java.lang.String _inputFile, java.lang.Class _inputClass, Catalog<java.lang.String,java.lang.String> _options, java.lang.String[] _commandOptions)`

Method Summary
`java.lang.String` | `getLanguage()` Simple accessor.
`boolean` | `invoke()` Run the actual project generation.
`protected void` | `resolve(Declaration decl, Expression.Phase phase)` Resolve the given declaration and all it's children, if it's a namespace.
`static boolean` | `setLanguage(java.lang.String name, java.lang.String resource, java.lang.String config)` Add a new language to this command.
`static boolean` | `setPlugin(java.lang.String name, java.lang.String resource, java.lang.String config)` Add a new plugin to this command.

Methods inherited from class rdlc.commands.Command
`backEndPlugin, end, frontEndPlugins, getCommandName, getErrorLog, getInputClass, getInputPath, getManifest, getOption, getOutputPath, hasErrors, run, start`

Methods inherited from class java.lang.Thread
`activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### Check

    public Check(Main main,
                 java.lang.String _inputFile,
                 java.lang.Class _inputClass,
                 Catalog<java.lang.String,java.lang.String> _options,
                 java.lang.String[] _commandOptions)

See Also:
  `Command.Command(Main, String, Class, Catalog, String[])`

Method Detail

### invoke

    public boolean invoke()

  Description copied from class: `Command`
  Run the actual project generation. This is separated so that the actual project generation can be run in a different thread from the GUI. Notice that the command code is not placed directly in the run method, as the command line interface needs to know if there were errors during execution.

  Specified by:
    `invoke` in class `Command`
  Returns:
    `true` on success.
  See Also:
    `Command.invoke()`

### resolve

    protected void resolve(Declaration decl,
                           Expression.Phase phase)

  Resolve the given declaration and all it's children, if it's a namespace.

  Parameters:
    `decl` - The declaration to recursively resolve.
    `phase` - The phase of resolution.

### getLanguage

    public java.lang.String getLanguage()

  Description copied from class: `Command`
  Simple accessor.

  Specified by:
    `getLanguage` in class `Command`
  Returns:
    Get the name of the output language.
  See Also:
    `Command.getLanguage()`

### setLanguage

    public static boolean setLanguage(java.lang.String name,
                                      java.lang.String resource,
                                      java.lang.String config)

  Add a new language to this command. This is meant to add language support to this command. If will be called once for each language element in a command element in the configuration file.

  Parameters:
    `name` - The name to use for the language.
    `resource` - The resource (class) to load to implement the language.
    `config` - Configuration string for the given class.
  Returns:
    `true` on success.

### setPlugin

    public static boolean setPlugin(java.lang.String name,
                                    java.lang.String resource,
                                    java.lang.String config)

  Add a new plugin to this command. This is meant to add pluging support to this command. If will be called once for each plugin element in a command element in the configuration file.

  Parameters:
    `name` - The name to use for the plugin.
    `resource` - The resource (class) to load to implement the plugin.
    `config` - Configuration string for the given class.
  Returns:
    `true` on success.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD